/*
 * @Descripttion: 
 * @version: 
 * @Author: 马琳峰
 * @Date: 2020-11-13 13:54:30
 * @LastEditors: 马琳峰
 * @LastEditTime: 2020-11-13 15:35:47
 */
const {merge}  = require("webpack-merge");
//引入公共配置
const commonConfig = require("./webpack.common")
const webpack = require("webpack")

module.exports = merge(commonConfig,{
    mode: 'development',//告知 webpack 使用相应模式的内置优化。
    devServer: {
        contentBase: ['public'],
        hot: true
    },
    devtool: 'cheap-module-eval-source-map',
    plugins:[
        new webpack.HotModuleReplacementPlugin()
    ]   
})